//todo 后台登录
function login(){
    let url = '../public/index.php/';
    let account = $('#account').val();
    let password = $('#password').val();
    $.ajax({
        url:url+'admin/login',
        type:"POST",
        data:{
            account :account,
            password:password,
        },
        success:function(data){
            if(data.code === 1){
                lay(data.data);
                setTimeout(function(){window.location = './page/index.html'},1500);
            }else{
               lay(data.msg);
            }
        },
        error:function(){
            lay('网络错误');
        }
    })
}